package com.todofun.common.app;

import java.util.Timer;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.todofun.common.app.MailTools;

public class CommonThread implements ServletContextListener {
	protected static final Log logger = LogFactory.getLog(CommonThread.class);
	public void contextInitialized(ServletContextEvent e)
	{
		//MailTools mailtools = new MailTools();	
		//System.out.println("启动发送邮件线程。。。");
		//logger.debug("启动发送邮件线程。。。");
		//Timer timer2 = new Timer();
		//timer2.schedule(mailtools, 1000*60,1000*60*5);
	}
	
	public void contextDestroyed(ServletContextEvent e)
	{

	}
}
